package za.ac.cput.arrowgame.model;

public class Arrow {

    private Direction direction;
    private GridLocation gridLocation;

    public Arrow() {
    }

    public Arrow(Direction direction, GridLocation gridLocation) {
        this.direction = direction;
        this.gridLocation = gridLocation;
    }

    public Direction getDirection() {
        return direction;
    }

    public void setDirection(Direction direction) {
        this.direction = direction;
    }

    public GridLocation getGridLocation() {
        return gridLocation;
    }

    public void setGridLocation(GridLocation gridLocation) {
        this.gridLocation = gridLocation;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        Arrow arrow = new Arrow();
        arrow.setDirection(this.direction);
        arrow.setGridLocation(this.gridLocation);
        return arrow;
    }
}
